package app.k.com.kframedemo;

import android.os.Bundle;

import com.viewplug.fragment.TabFragmentActivity;

import app.k.com.kframedemo.fragment.Fragment1;
import app.k.com.kframedemo.fragment.Fragment2;

/**
 * Created by mac_wk on 14-12-26.
 */
public class TabFragmentHost extends TabFragmentActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        addTab(new FragmentTabSpec("图片",R.drawable.tab_one_select, Fragment1.class,-1,R.drawable.tab_selector));
        addTab(new FragmentTabSpec("笑话",R.drawable.tab_two_select, Fragment2.class,-1,R.drawable.tab_selector));
        addTab(new FragmentTabSpec("视频",R.drawable.tab_three_select, Fragment2.class,-1,R.drawable.tab_selector));
        addTab(new FragmentTabSpec("更多",R.drawable.tab_four_select, Fragment2.class,-1,R.drawable.tab_selector));

    }
}
